<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:p="http://primefaces.org/ui">
<h:head>
   <title>The TODO LIST</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <h:outputStylesheet name="css/screen.css" />
</h:head>
<h:body>
   <div id="container">
 
 <h:form> 
 	
   	<p:tabMenu id="tabMenu" activeIndex="#{login.myActiveIndex}">
   		<p:menuitem value="Home Page" icon="ui-icon-star" action="#{login.changeMyActiveIndex(0)}"/>
		<p:menuitem rendered = "#{login.loggedIn}" value="Todo-list"  icon="ui-icon-star" action="#{login.changeMyActiveIndex(1)}"/>
		<p:menuitem rendered = "#{login.loggedIn}" value="Task-Type"  icon="ui-icon-star" action="#{login.changeMyActiveIndex(2)}"/>
		<p:menuitem rendered = "#{login.loggedIn}" value="Resources"  icon="ui-icon-star" action="#{login.changeMyActiveIndex(3)}"/>
		<p:menuitem rendered = "#{!login.loggedIn}" value="Registration"  icon="ui-icon-star" action="#{login.changeMyActiveIndex(4)}"/>
		<p:menuitem rendered = "#{!login.loggedIn}" value="Login"  icon="ui-icon-star" action="#{login.changeMyActiveIndex(5)}"/>
		<p:menuitem rendered = "#{login.loggedIn}" value="Logout"  icon="ui-icon-star" action="#{login.changeMyActiveIndex(6)}"/>
	</p:tabMenu>
	
  </h:form>  
      <div id="content">
			<br/>         
         	<h:panelGroup rendered = "#{login.loggedIn}">
         		<h4>Welcome,
         		<h:outputLabel value="#{currentUser.name}" />
         		 !</h4>
         	</h:panelGroup>
         	
            
         <ui:insert name="content">
                    [Template content will be inserted here]
                </ui:insert>
      </div>
      <div id="footer">
         <h:graphicImage value="/resources/gfx/bg-footer.png" alt="Weld logo" width="500" height="70" />
         <p>
            All rights reserved!<br /><br />
            The Team: #BódisAttila #FarkasJózsef #BalassaTamás<br />
         </p>
      </div>
   </div>
</h:body>
</html>
